/**
 * 从 document.styleSheets 查询 class name CSSStyleDeclaration
 * @param {String} className  例 : disnone
 * @returns {CSSStyleDeclaration||null}
 */
function getDoc_styleSheet_className(className) {
  /**
   * @type {StyleSheetList}
   */
  let styleSheets = document.styleSheets;
  for (const styleList of styleSheets) {
    for (const uniStyle of styleList.cssRules) {
      if (uniStyle.selectorText == '.' + className) {
        return uniStyle.style;
      }
    }
  }
  return null;
}

export { getDoc_styleSheet_className };
